package br.com.hermes.emu.bt.comm;

import br.com.hermes.bt.HmBluetoothComm;
import br.com.hermes.bt.HmHandle;
import br.com.hermes.emu.bt.EmuHandleCommListener;
import br.com.hermes.emu.bt.EmuMessage;

public class EmuBlueComm extends HmBluetoothComm{

	public EmuBlueComm(HmHandle handle, int whatMsg, int whatBTData) {
		super(handle, whatMsg, whatBTData);
	}

	@Override
	public void sendHandler(int what, Object object) {
		EmuHandleCommListener handleCommListener = (EmuHandleCommListener)this.getHandle().getTarget();
		handleCommListener.onTreatMessage(what, new EmuMessage(object));
	}
 
}
